﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.Entities;
using NHibernate;
using Totoro.Configuration;
using System.Configuration;
using Totoro.ORMapping; 

namespace WebApp
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ISession session = NHHelper.GetCurrentSession();
            //ITransaction tx = session.BeginTransaction();
            //User c = new User();
            //c.ID  = "1";
            //c.LogonName  = "LogonName";
            //c.CreateTime  = DateTime.Now;
            //c.UpdateTime  = DateTime.Now;
            //c.EndTime  = DateTime.MaxValue; 
            //session.Save(c);
            //tx.Commit();

            //IList<User> lst = session.QueryOver<User>().List();
            //NHHelper.CloseSession();
            //Totoro.Logging.LogHelper.WriteLog ("first log ! ");

           // string time = TotoroConfiguration.GetConfig().TickExpireTime.Value;
           
             
        }
    }
}
